
/**		
 * 
 *	style.Styles
 *	
 *	@version 1.00 | May 31, 2010
 *	@author Fraser Hobbs
 *  
 **/
 
package mx.pacu.style 
{

	/**
	 * @author Fraser Hobbs
	 */
	public class Styles 
	{
		public var width:Number;
		public var height:Number;
		public var paddingTop:Number;
		public var paddingBottom:Number;
		public var paddingLeft:Number;
		public var paddingRight:Number;
		public var marginTop:Number;
		public var marginBottom:Number;
		public var marginLeft:Number;
		public var marginRight:Number;
		public var backgroundColor:Number;
		public var textAlign:String = "left";
		
		private static const _cascades:Object = new Object();
		
		public function Styles():void
		{
			_cascades["width"] = false;
			_cascades["height"] = false;
			_cascades["paddingTop"] = false;
			_cascades["paddingBottom"] = false;
			_cascades["paddingLeft"] = false;
			_cascades["paddingRight"] = false;
			_cascades["marginTop"] = false;
			_cascades["marginBottom"] = false;
			_cascades["marginLeft"] = false;
			_cascades["marginRight"] = false;
			_cascades["backgroundColor"] = false;
			_cascades["textAlign"] = true;
		}
		
		public static function cascades(__property:String):Boolean
		{
			return _cascades[__property];
		}
	}
}
